package main

import (
	"fmt"
	"log"
	"os"
)

func main() {
	err := os.Chdir("/opt/homebrew")
	if err != nil {
		log.Fatal(err)
	}

	path, _ := os.Getwd()

	fmt.Printf("当前的目录为：%s", path)
}
